<script setup name="App">
import useCounterStore, { age as age2 } from './store/counter'
// 拿到创建模块
const counter = useCounterStore()
</script>
<template>
  <!-- 这儿不能 counter.state.count -->
  <div>count: {{ counter.count }}</div>
  <div>double: {{ counter.double }}</div>
  <button @click="counter.changeCount(3)">increment</button>
  <button @click="counter.changeCountAsync(4)">increment async</button>
</template>
